<!DOCTYPE html><%@ page language="java"
	contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!-- saved from url=(0041)http://v3.bootcss.com/examples/dashboard/ -->
<html lang="UTF-8">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="http://v3.bootcss.com/favicon.ico">

<title>首页</title>

<!-- Bootstrap core CSS -->
<link
	href="${pageContext.request.contextPath}/res/css/bootstrap/css/bootstrap.min.css"
	rel="stylesheet">


</head>

<body>




	<form method="post"
		action="${pageContext.request.contextPath}/dbcheck/code">
		<input type='hidden' name='id' value='${id }' />

		<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
			<div>用来生成DAO层代码</div>
			<div>&nbsp;</div>


			<table style='width: 48%'>
				<tr>
					<td><select name='tableName'>
							<c:forEach items="${list }" var="m">
								<option value="${m.name }">${m.name }</option>
							</c:forEach>

					</select></td>
					<td><div class="btn-group">
							<button class="btn btn-primary" href="#"
								onclick='code();return false;'>
								<i class="icon-plus icon-white"></i>生成
							</button>

						</div></td>
				</tr>
			</table>
			<div>Model代码:</div>
			<div>${r.modelDoName }</div>
			<div>
				<c:forEach items="${r.modelFieldList }" var="m">
					<div>${m }</div>
				</c:forEach>
			</div>
			<div>&nbsp;</div>
			<div>Dao代码:</div>
			<div>${r.modelDoName }Dao</div>
			<div>
				<c:forEach items="${r.daoList }" var="m">
					<div> ${m } </div> 
				</c:forEach>
			</div>
			<div>&nbsp;</div>
			
			<div>Mapper代码:</div>
			<div>${r.modelDoName }Mapper</div>
			<div>
			 
				<c:forEach items="${r.mapperList }" var="m">
					<div>
					<c:out value="${m}" escapeXml="true"/>  
					</div>
				</c:forEach>
			 </div>
			<div>&nbsp;</div>
			
			<div>Convert代码:</div>
			<div>${r.modelDoName }Converter</div>
			 
				<c:forEach items="${r.convertList }" var="m">
				<div>
					<c:out value="${m}" escapeXml="true"/>  
					</div>
				</c:forEach> 
			  
		</div>
	</form>

	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->
	<script src="${pageContext.request.contextPath}/res/js/jquery.min.js"></script>
	<script>
		window.jQuery
				|| document
						.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')
	</script>
	<script
		src="${pageContext.request.contextPath}/res/css/bootstrap/js/bootstrap.min.js"></script>
	<!-- Just to make our placeholder images work. Don't actually copy the next line! -->
	<script src="${pageContext.request.contextPath}/res/js/holder.min.js"></script>
	<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
	<script
		src="${pageContext.request.contextPath}/res/js/ie10-viewport-bug-workaround.js"></script>
	<script>
		<script type="text/javascript">
		$(function() {
			$("#code").click(function() {
				$("form").submit();
				return false;
			});

		});
	</script>
	</script>

</body>
</html>